<%@ page language="java" isELIgnored="false" import="java.util.*"
	pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@page import="com.testingedu.model.TUser"%>
<%TUser tUser = (TUser)request.getAttribute("tUser"); %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>查看用户</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css"
			href="${pageContext.request.contextPath}/css/pingTai/pingTai.css">
		<script charset="utf-8"
			src="${pageContext.request.contextPath}/editor/kindeditor.js">
</script>
		<script charset="utf-8"
			src="${pageContext.request.contextPath}/editor/lang/zh_CN.js">
</script>
		<script>
var editor;
KindEditor.ready(function(K) {
	editor = K.create('#editor_id');
});
</script>
	</head>
	<body>

		<table width="100%" border="0" align="center" cellpadding="0"
			cellspacing="0">
			<tr>
				<td height="3"></td>
			</tr>
			<tr height="20" valign="baseline">
				<td bgcolor="#353c44">
					<img src="${pageContext.request.contextPath}/images/pingTai/tb.gif"
						width="14" height="14" />
					<span class="STYLE1">用户详细信息</span>
				</td>
				<td align="right" bgcolor="#353c44">
					<span class="STYLE1"> </span>
				</td>
			</tr>
			<tr>
				<td height="3" colspan="2"></td>
			</tr>
		</table>

		<table width="100%" border="0" cellpadding="0" cellspacing="1"
			bgcolor="#a8c7ce">
			<tr bgcolor="#FFFFFF" class="STYLE19">
				<td align="right" width="15%">
					姓名:
				</td>
				<td width="35%">
					<%=tUser.getName() %>
				</td>
				<td align="right">
				</td>
				<td>

				</td>
			</tr>
			<tr bgcolor="#FFFFFF" class="STYLE19">
				<td align="right">
					性别:
				</td>
				<td>
					<%if("m".equals(tUser.getSex())){%>
					男
					<%} else{%>
					女
					<%} %>
				</td>
				<td align="right">
					电话号码:
				</td>
				<td>
					<%=tUser.getPhone() %>
				</td>
			</tr>
			<tr bgcolor="#FFFFFF" class="STYLE19">
				<td align="right">
					邮箱:
				</td>
				<td>
					<%=tUser.getEmail() %>
				</td>
				<td align="right">
					qq:
				</td>
				<td>
					<%=tUser.getQq() %>
				</td>
			</tr>
			<tr bgcolor="#FFFFFF" class="STYLE19">
				<td align="right">
					用户详细信息:
				</td>
				<td colspan="3">
					<textarea id="editor_id" name="description"
						style="width: 800px; height: 400px;" readonly="readonly"><%=tUser.getDescription() %>
						</textarea>
				</td>
			</tr>
			<tr bgcolor="#FFFFFF" class="STYLE19">
				<td colspan="4" align="center">
					<input type="button" value="返回"
						onclick="javascript:history.go(-1);" class="button2" />
						<%TUser sessionTUser = (TUser)session.getAttribute("testingedu_admin");
						if(sessionTUser.getId().intValue() == tUser.getId().intValue()) {%>
					<input type="button" value="修改我的信息"
						onclick="goUpdate();" class="button4" />
						<%} %>
				</td>
			</tr>
		</table>

	</body>
	<script type="text/javascript">
		function goUpdate() {
			window.location.href="${pageContext.request.contextPath}/admin/myInfo/update?id=<%=tUser.getId()%>&url=update";
		}
	</script>
</html>
